package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Travel;
import cn.wolfcode.luowowo.article.domain.TravelContent;
import cn.wolfcode.luowowo.common.query.QueryObject;

import java.util.List;

public interface TravelMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Travel record);

    Travel selectByPrimaryKey(Long id);

    List<Travel> selectAll();

    int updateByPrimaryKey(Travel record);

    List<Travel> selectForList(QueryObject qo);


    List<Travel> listVeiwnumTop3(Long destId);


    TravelContent getContent(Long id);

    void insertContent(TravelContent content);

    void updateContent(TravelContent content);


    void updateState(Travel travel);

    List<Travel> selectByUserId(Long userId);

    Long selectByTravelId(Long id);

}